/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.lb.trac.service;

import org.springframework.mail.javamail.JavaMailSender;

import com.lb.trac.dao.DAOService;

/**
 * 
 * @author edoardo
 */
public abstract class MailSenderService {

	private JavaMailSender mailSender;
	private SearchService searchService;
	private DAOService daoService;
	private CustomQueryService customQueryService;
	private String from;
	private String url;
	private boolean cancellaEventoInviato=false;

	public static final int SEND_ONLY_TO_DEVELOPER = 0;
	public static final int SEND_ONLY_TO_CUSTOMER = 1;
	public static final int SEND_TO_ALL = 2;

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public SearchService getSearchService() {
		return searchService;
	}

	public void setSearchService(SearchService searchService) {
		this.searchService = searchService;
	}

	public JavaMailSender getMailSender() {
		return mailSender;
	}

	public void setMailSender(JavaMailSender mailSender) {
		this.mailSender = mailSender;
	}

	
	public abstract void sendMessage(Object... params) throws Exception;
	

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public DAOService getDaoService() {
		return daoService;
	}

	public void setDaoService(DAOService daoService) {
		this.daoService = daoService;
	}

	public boolean isCancellaEventoInviato() {
		return cancellaEventoInviato;
	}

	public void setCancellaEventoInviato(boolean cancellaEventoInviato) {
		this.cancellaEventoInviato = cancellaEventoInviato;
	}

	public CustomQueryService getCustomQueryService() {
		return customQueryService;
	}

	public void setCustomQueryService(CustomQueryService customQueryService) {
		this.customQueryService = customQueryService;
	}
}
